home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 86
/
(Vol 86) My Disc.iso
/
Games
/
celebridades_1407.swf
/
scripts
/
DefineSprite_22
/
frame_1
/
DoAction.as
Wrap
Text File
|
2009-04-29
|
842b
|
30 lines
var btsLoaded = 0;
var btsTotal;
onEnterFrame = function()
{
btsLoaded = _root.getBytesLoaded();
btsTotal = _root.getBytesTotal();
_root.loader.bar._x = _root.loader.percentage.text * 1.5;
percentage.text = Math.round(btsLoaded / btsTotal * 100);
kbts.text = (btsLoaded / 1000).toString() + "kb / " + (btsTotal / 1000).toString() + "kb";
if(percentage.text >= 100)
{
_root.gotoAndPlay(2);
_root.loader._alpha -= 8;
_root.loader._xscale -= 2;
_root.loader._yscale -= 2;
_root.loader.label1._visible = false;
_root.loader.percentage._visible = false;
_root.loader.kbts._visible = false;
if(_root.loader._alpha < 0)
{
_root.gotoAndPlay(2);
onEnterFrame = null;
}
}
else
{
_root.gotoAndStop(1);
}
};